package com.young.coderule.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.young.coderule.entity.ComCodeRule;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;

/**
 * @DESCRIPTION:
 * @USER: Young
 * @DATE: 2022/7/29 10:56
 */
public interface ComCodeRuleService extends IService<ComCodeRule> {
    //@Resource
    //private CodeNumberLockUtils codeNumberLockUtils;
    @Transactional(rollbackFor = Exception.class)
    void add(ComCodeRule comCodeRule);

    @Transactional(rollbackFor = Exception.class)
    void del(Serializable id);

    @Transactional(rollbackFor = Exception.class)
    void edit(ComCodeRule comCodeRule);

    ComCodeRule detail(Serializable id);

    ComCodeRule queryDetail(String bizObjectCode);

    String getCode(String bizObjectCode);
}
